import request from '@/utils/request'

// 查询赛事信息列表
export function listContest(query) {
  return request({
    url: '/contest/contest/list',
    method: 'get',
    params: query
  })
}

// 查询赛事信息详细
export function getContest(id) {
  return request({
    url: '/contest/contest/' + id,
    method: 'get'
  })
}

// 新增赛事信息
export function addContest(data) {
  return request({
    url: '/contest/contest',
    method: 'post',
    data: data
  })
}

// 修改赛事信息
export function updateContest(data) {
  return request({
    url: '/contest/contest',
    method: 'put',
    data: data
  })
}

// 删除赛事信息
export function delContest(id) {
  return request({
    url: '/contest/contest/' + id,
    method: 'delete'
  })
}






